﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public class PublicEnum
    {
        public void PublicEnmu() { }

        public enum ViewStatus
        {
            不生效,
            未审核,
            审核通过,
            审核未通过,
            生效

        }
        public enum ViewType
        {
            基础视图,
            自定义视图
        }

        public enum JobType
        {
            /// <summary>
            /// 加工数据
            /// </summary>
            TransferData,
            /// <summary>
            /// 推送数据
            /// </summary>
            LoadingData,
            /// <summary>
            /// 抽取数据
            /// </summary>
            ExtractingData
        }
    }

    public class EnumConvert
    {
        public static string ConvertJopTypeToGUID(Common.PublicEnum.JobType type)
        {
            string result = string.Empty;
            switch (type)
            {
                case PublicEnum.JobType.TransferData:
                    result = "90963D9E-FAC5-48B7-AAE0-37684C2EBC23";
                    break;
                case PublicEnum.JobType.LoadingData:
                    result = "BB94F39F-36CE-48E0-9EAE-01DE9EABBDCB";
                    break;
                case PublicEnum.JobType.ExtractingData:
                    result = "E9EDEA98-5FF5-4ADB-8801-2989E7543137";
                    break;
                default:
                    result = "";
                    break;
            }
            return result;
        }
    }
} 
